//
//  STFileItem.h
//  smart_transferor
//
//  Created by wtc on 11-11-2.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum
{
    kImage = 1,
    kAudio = 2,
    kVideo = 3,
    kMovie = 4,
    kDirectory = 5,
    kOther
} STFileItemType;

@interface STFileItem : NSObject
{
    NSString *fileName;
    int fileType;
    UIImage * icon;
    NSString * absPath;
    UIDocumentInteractionController * ic;
}

@property (retain, nonatomic)  NSString *fileName;
@property (nonatomic)  int fileType;
@property (retain, nonatomic)  UIImage *icon;
@property (retain, nonatomic) NSString * absPath;
@property (retain,nonatomic) UIDocumentInteractionController * ic;
- (int) getFileTypeFromName:(NSString *)name;
- (STFileItem *) initWithFileName:(NSString*)filename  AndDir:(NSString *)dir;
- (UIImage *) getThumbnailImageFromName:(NSString *)filename;
- (NSString *) composeAbsPathByDir:(NSString *) absDir AndName:(NSString *)filename;
@end
